import {get, uploadFileRequest} from '../../util/request/requests'

export default {
  downLoad (filename) {
    return get({
      getHeader: 1,
      responseType: 'blob',
      url: '/oss/localDownload',
      params: {filename}
    })
  },
  uploadImg (data) {
    return uploadFileRequest(
      '/oss/uploadMarkdownImg',
      data
    )
  }
}
